<?php

if(!$_SESSION['user']['username']){
	redirect(BASE_URL);
}

switch($_GET['opt']){

case "common":
require("controllers/manage/truyen/truyen.php");
break;	
case "upload":
require("controllers/manage/truyen/upload.php");
break;
	
case "ajax":
require("controllers/manage/truyen/ajax.php");
break;

case "history":
require("controllers/manage/truyen/history.php");
break;
}

switch($_POST['opt']){
case "ajax":
require("controllers/manage/truyen/ajax.php");
break;	
case "getlink":
require("controllers/manage/truyen/getlink.php");
break;	

}

